export default {
  data () {
    return {
      isRequestMinx: false,
    };
  },
  created () {},
  methods: {
    //防止用户连续点击
    repeatRequest (data, callback) {
      if (!this.isRequestMinx) {
        this.isRequestMinx = true
        callback(data)
        setTimeout(() => {
          this.isRequestMinx = false
        }, 2000);
      } else {
        return
      }
    }
  }
}